<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" import="org.apache.commons.lang.StringEscapeUtils"%>
<%@ include file="/WEB-INF/taglibs.jsp"%>
<script>
$(function(){
	$("#serveMenu").addClass("cur");
});
</script>

<div class="conTit fixed">
	<p>服务类型管理</p>
		<div class="fr"><a href="${ctx}/admin/serveInfo/editServeType.htm" class="backBtn">新增</a></div>
</div>

<table class="theTable">
    <thead>
        <tr>
        	<th width="8%">序号</th>
        	<th>服务名称</th>
        	<th>服务类型</th>
        	<th width="100">操作</th>
        </tr>
    </thead>
    <tbody>
     	<c:forEach items="${typeList}" var="o" varStatus="status">
	        <tr>
	        	<td>${status.count}</td>
	        	<td>${o.typeName}</td>
	        	<td>
		      	  	<c:if test="${o.category == 1}">房产</c:if>
		        	<c:if test="${o.category == 2}">其他</c:if>  
		        <td>
		        	<a href="${ctx}/admin/serveInfo/editServeType.htm?serveTypeId=${o.id}" class="backBtn">编辑</a>		        	
		        </td>
	        </tr>
        </c:forEach>
    </tbody>
</table>

<script>
	/* function openLayer() {
		
		layer.open({
			area: ['700px', '530px'],
			title:'新增类别',
			type:2,
			content:'${ctx}/admin/serveInfo/editServeType.htm'
		})
	} */
</script>